home *** CD-ROM | disk | FTP | other *** search
/ Web3D Graphics - Virtual Worlds Created With VRML / Web3D Graphics - Virtual Worlds Created With VRML.iso / Sample / BunkyoShonan / main.wrl < prev    next >
Encoding:
Text File  |  2001-03-21  |  5.9 KB  |  246 lines

  1. #VRML V2.0 utf8
  2.  
  3. ###################################################
  4. #
  5. # ü@ ò╢ï│æσèwÅ├ô∞âLâââôâpâX
  6. #
  7. #ü@ü@ì∞ɼÄ╥ü@  êΘæOöⁿùóüòôcæ║ê╗ÄqüòìLôαôNòvüiéâüj
  8. # ü@   ü£âfâUâCâôü@êΘæOöⁿùóüòôcæ║ê╗Äq
  9. #ü@  ü@ü£è┬ï½É▌ÆΦü@ìLôαôNòv
  10. #ü@ü@Åèæ«ü@ü@ò╢ï│æσèwÅεò±èwòöü@ìLôαâ[â~âiü[âï
  11. #ü@ü@ì∞ɼô·ü@éQéOéOéPöNéQîÄéPô·
  12. #ü@ü@û│Æfëⁿò╧üAû│Æfözòzé≡ï╓é╢é▄é╖üB
  13. #
  14. ###################################################
  15.  
  16. ######## ï≤é╠âpâmâëâ} #############################
  17. Background{
  18.     backUrl "myclouds.jpg"
  19.     bottomUrl "myclouds.jpg"
  20.     frontUrl "myclouds.jpg"
  21.     leftUrl "myclouds.jpg"
  22.     rightUrl "myclouds.jpg"
  23.     topUrl "myclouds.jpg"
  24. }
  25.  
  26. ######### Å╞û╛ü@##################################
  27. DirectionalLight{   
  28.     direction 1 0 0
  29.     intensity 0.6 #0.3
  30.     on TRUE
  31. }
  32. DirectionalLight{
  33.     direction 0 1 0
  34.     intensity 0.3 #0.3
  35.     on TRUE
  36. }
  37. DirectionalLight{
  38.     direction 0 0 1
  39.     intensity 0.3 #0.3
  40.     on TRUE
  41. }
  42. DirectionalLight{
  43.     direction -1 0 0
  44.     intensity 0.3 #0.3
  45.     on TRUE
  46. }
  47. DirectionalLight{
  48.     direction 0 -1 0
  49.     intensity 0.99 #0.6
  50.     on TRUE
  51. }
  52. DirectionalLight{
  53.     direction 0 0 -1
  54.     intensity 0.3 #0.3
  55.     on TRUE
  56. }
  57.  
  58. ##################Äïô_#####################
  59. Viewpoint {
  60.      position -20 40 220
  61.      orientation 0 1 0 0
  62.      description "scene1"  
  63. }
  64. Viewpoint {
  65.      position -326 40 60
  66.      orientation 0 1 0 -1.57
  67.     description "scene2"  
  68. }
  69. Viewpoint {
  70.      position -30 60 -320 #27 60 -320
  71.      orientation 0 1 0 -3.14
  72.      description "scene3"  
  73. }
  74. Viewpoint {
  75.      position 268 41 -47
  76.      orientation 0 1 0 1.57
  77.      description "scene4"  
  78. }
  79. Viewpoint {
  80.      position 60 4.3 -5
  81.      orientation 0 1 0 1.57
  82.      description "scene5"  
  83. }
  84. Viewpoint {
  85.      position -25.58 9.96 30.86
  86.      orientation 0 1 0 0
  87.      description "scene6"  
  88. }
  89. Viewpoint {
  90.      position -60.0076 7.2765 -1.538
  91.      orientation 0 1 0 -1.57
  92.      description "scene7"  
  93. }
  94. Viewpoint {
  95.      position 9.8997 8.27699 -69.9473
  96.      orientation 0 1 0 -3.14
  97.      description "scene8"  
  98. }
  99. Viewpoint {
  100.      position -74.7899 13.6265 14.6997 
  101.      orientation 0 1 0 -45
  102.      description "scene9"  
  103. }
  104. Viewpoint {
  105.      position -42.5 45 105
  106.      orientation 0 1 0 0
  107.      description "scene10"  
  108. }
  109. Viewpoint {
  110.      position -68.0 47.4 22.3639
  111.      orientation 0 1 0 -1.57
  112.      description "scene11"  
  113. }
  114.  
  115. DEF viewA Viewpoint{   #Æ╩Åφé╠ë±ô]
  116.     position 0 10 0
  117.     orientation 0 1 0  0 
  118.     description  "movie1"
  119. }
  120. DEF viewB Viewpoint{   #JavaScripté╔éµéΘë±ô]
  121.     position 0 10 0
  122.     orientation 0 1 0  -1.25 
  123.     description  "movie2"
  124. }
  125. DEF viewC Viewpoint{   #JavaScripté╔éµéΘë±ô]
  126.     position 0 10 0
  127.     orientation 0 1 0  -1.25 
  128.     description  "movie3"
  129. }
  130.  
  131. ######ü@âiârâQü[âVâçâôÅεò±ü@########################
  132. NavigationInfo{
  133.    avatarSize[ 0.1 1.6 1.0]
  134.    speed 5.0
  135.    type ["FLY","ANY"]
  136. }
  137.  
  138. ###### îiè╧ü@#######################################
  139. Transform{
  140.   translation 0 0 0
  141.   children[
  142.     Inline{
  143.       url "shonanhead.wrl"
  144.     }
  145.   ]
  146. }
  147.  
  148. ####################################################
  149. # Æ╩Åφé╠ë±ô]ɺîΣé╔éµéΘìZÆδôαÄⁿë±
  150. ####################################################
  151. DEF OInterpol OrientationInterpolator{
  152.     key [ 
  153.        0.0,
  154.        0.5,
  155.        1.0 
  156.     ]
  157.     keyValue [
  158.        0 1 0 0.000,
  159.        0 1 0 -3.1416,
  160.        0 1 0 -6.2832
  161.     ]
  162. }
  163. DEF Timer1 TimeSensor{
  164.     cycleInterval 60 
  165.     loop TRUE
  166. }
  167. ROUTE Timer1.fraction_changed TO OInterpol.set_fraction
  168. ROUTE OInterpol.value_changed TO viewA.set_orientation
  169.  
  170.  
  171. ####################################################
  172. # JAVASCRIPTɺîΣé╔éµéΘìZÄ╔êΩÄⁿüiéPüj
  173. ####################################################
  174. DEF TIMER2 TimeSensor{
  175.     cycleInterval 100
  176.     loop TRUE
  177. }
  178. #........................................................
  179. DEF SPIN OrientationInterpolator{
  180.     key [ 
  181.        0.0000,
  182.        0.5000,
  183.        1.0000 
  184.     ]
  185.     keyValue [
  186.        0 1 0 -0.000,
  187.        0 1 0 -3.1416,
  188.        0 1 0 -6.2832
  189.     ]
  190. }
  191. #ìZÄ╔Äⁿë±................................................
  192. DEF OutRoad Script{
  193.    eventIn SFFloat set_coord_road
  194.    eventOut SFVec3f  coord_road_changed
  195.    url "javascript:
  196.        function set_coord_road(a){
  197.           coord_road_changed[0]=0+250*Math.sin(3.141592*2*a);
  198.           coord_road_changed[1]=30;
  199.           coord_road_changed[2]=0+250*Math.cos(3.141592*2*a);
  200.        }"
  201. }
  202. ROUTE TIMER2.fraction_changed TO SPIN.set_fraction
  203. #..........................................................
  204. ROUTE SPIN.value_changed TO viewB.set_orientation           
  205. ROUTE TIMER2.fraction_changed TO OutRoad.set_coord_road
  206. ROUTE OutRoad.coord_road_changed TO viewB.set_position 
  207. #..........................................................
  208.  
  209. ####################################################
  210. # JAVASCRIPTɺîΣé╔éµéΘôâêΩÄⁿüiéQüj
  211. ####################################################
  212. DEF TIMER3 TimeSensor{
  213.     cycleInterval 70
  214.     loop TRUE
  215. }
  216. #........................................................
  217. DEF SPIN2 OrientationInterpolator{
  218.     key [ 
  219.        0.0000,
  220.        0.5000,
  221.        1.0000 
  222.     ]
  223.     keyValue [
  224.        0 1 0 -0.000,
  225.        0 1 0 -3.1416,
  226.        0 1 0 -6.2832
  227.     ]
  228. }
  229. #ôâÄⁿë±................................................
  230. DEF Tower Script{
  231.    eventIn SFFloat set_coord_tower
  232.    eventOut SFVec3f  coord_tower_changed
  233.    url "javascript:
  234.        function set_coord_tower(a){
  235.           coord_tower_changed[0]=-65-4+50*Math.sin(3.141592*2*a);//80
  236.           coord_tower_changed[1]=40;//50
  237.           coord_tower_changed[2]=40-17.5+50*Math.cos(3.141592*2*a);//80
  238.        }"
  239. }
  240. ROUTE TIMER3.fraction_changed TO SPIN2.set_fraction
  241. #..........................................................
  242. ROUTE SPIN2.value_changed TO viewC.set_orientation           
  243. ROUTE TIMER3.fraction_changed TO Tower.set_coord_tower
  244. ROUTE Tower.coord_tower_changed TO viewC.set_position 
  245. #..........................................................
  246.